<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>component</title>
		<script src="https://cdn.jsdelivr.net/npm/vue"></script>
	</head>
	<body>
		<div id="app">
			<ol>
			  <todo></todo>
		    </ol>
		</div>
		<script>
			Vue.component('todo',{
				template: '<li>这是个待办项</li>'
			})
			var vm = new Vue({
				el:'#app'
			})
		</script>
	</body>
</html>
